package com.ipfsemc.ipfsemc.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel(value = "Fil" ,description = "fil明细")
public class Fil {
    @ApiModelProperty(notes = "ID",example = "2")
    private Long filId;

    @ApiModelProperty(notes = "矿机ID",example = "2")
    private Long spaceId;

    @ApiModelProperty(notes = "用户ID")
    private String userId;

    @ApiModelProperty(notes = "事件")
    private String filEvent;

    @ApiModelProperty(notes = "时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date filTime;

    @ApiModelProperty(notes = "明细")
    private String filItem;

    @ApiModelProperty(notes = "数量")
    private BigDecimal filNum;

    @ApiModelProperty(notes = "总算力")
    private BigDecimal totalHashrate;

    @ApiModelProperty(example = "1",notes = "奖励类型，1为爆矿奖励，2为转账")
    private Integer filType;

    @ApiModelProperty(notes = "获益比例",example = "5")
    private Double scale;

    @ApiModelProperty(notes = "电话")
    private String phone;

    @ApiModelProperty(notes = "算力")
    private BigDecimal hashrate;

    @ApiModelProperty(notes = "结束时间")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date endTime;

}
